<?php
// define array
//$profile = array(
  //"fname" => "Susan",
  //"lname" => "Doe",
  //"sex" => "female",
  //"sector" => "Asset Management"
//);
$profile = array(
  "fname" => "00",
  "lname" => "11Doe",
  "sex" => "9female",
  "sector" => "23Asset Management"
);
#natsort();
// sort by value
// output: ('sector' => 'Asset Management',
//  'lname' => 'Doe',
//  'fname' => 'Susan',
//  'sex' => 'female')
//natsort($profile);
asort($profile);
print_r($profile);
?>
